﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class PointHit : MonoBehaviour,IPointerClickHandler{
	public bool flag = false; //为True发消息++ false不发消息

    public void OnPointerClick(PointerEventData eventData)
    {
        transform.position = new Vector3(transform.position.x, -0.5f, transform.position.z);
        flag = true;
    }
}
